<?php 

require_once 'config.php';
 
$categoria = $_GET["categoria"];
$mes       = $_GET["mes"];
$where     = ($mes)?"mes = $mes":"categoria = $categoria";
$noticias  = DB::fetchTodos("*","noticias",$where);

foreach($noticias as $v){
	echo "<a href='javascript:abrirTexto({$v['id']});'>{$v['titulo']}</a><br />";
}

?>